package org.raftkv.raft.quorum;

import org.raftkv.commons.Tuple;

import java.util.HashMap;

public class MapAckedIndexer extends HashMap<Long, Long> implements AckedIndexer {

    @Override
    public Tuple<Long, Boolean> ackedIndex(long id) {
        Long idx = this.get(id);
        return new Tuple<>(idx, idx == null);
    }

}
